@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "PingFang SC", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f5f7fb;
}

label {
  font-weight: 500;
  color: #475569;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  margin-bottom: 16px;
  border-radius: 12px;
  background-color: #1e80ff;
  box-shadow: 0 10px 24px -18px rgba(30, 128, 255, 0.58);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;

  .subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
  }

  &.draft,
  &.deleted {
    background: #94a3b8;
    box-shadow: none;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding-bottom: 12px;
  .filter-item {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
  }
}
.el-input--medium .el-input__inner {
  height: 32px;
  line-height: 33px;
}

.el-form--inline .el-form-item {
  margin-right: 16px;
  margin-bottom: 12px;
}

.el-form-item {
  margin-bottom: 16px;
}

.el-form-item__label {
  color: #475569;
  font-weight: 500;
  padding-right: 8px;
}

.el-input__inner,
.el-textarea__inner,
.el-select .el-input__inner {
  border-radius: 8px;
  border-color: #d5dbe7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.el-input__inner:focus,
.el-textarea__inner:focus,
.el-select .el-input.is-focus .el-input__inner,
.el-select .el-input__inner:focus {
  border-color: #1e80ff;
  box-shadow: 0 0 0 2px rgba(30, 128, 255, 0.15);
}

.el-button {
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.el-button:not(.is-circle):hover {
  box-shadow: 0 8px 18px -12px rgba(30, 128, 255, 0.6);
}

.el-table {
  border-radius: 12px;
}
